import { createApp } from "vue";
import type { App as AppInstance } from "vue";
import App from "@/App.vue";
import pinia from "@/pinia";
import router from "@/router";
import globalComponent from "@/components/index.ts";
import lazyImg from "@/directives/lazyImg.ts";
import "virtual:svg-icons-register";
import "nprogress/nprogress.css";
import "@/styles/index.less";
import 'element-plus/es/components/message/style/css'
import 'element-plus/es/components/message-box/style/css'

import "@/permission.ts"

const app: AppInstance = createApp(App);

app.use(globalComponent);
app.use(lazyImg)
app.use(pinia);
app.use(router);
app.mount("#app");
